package tgc.edu.yzy.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import tgc.edu.yzy.custom.CommonRepository;
import tgc.edu.yzy.entity.Dept;
@Repository
public interface DeptRepository extends CommonRepository<Dept, Integer>{

	public List<Dept> findByParentIsNull();

	public List<Dept> findByParentId(Integer id);

}
